import java.util.Comparator;
import java.util.PriorityQueue;
class intCmp implements Comparator<Integer> {
    @Override
    public int compare(Integer o1, Integer o2) {
        return o2.compareTo(o1);
    }
}

public class Text2 {
    public static void main(String[] args) {
        PriorityQueue<Integer> priorityQueue=new PriorityQueue<>();//小根堆
PriorityQueue<Integer>priorityQueue1=new PriorityQueue<>(new intCmp());//大根堆
    }
}
